package com.eleven.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eleven.dao.FundingMapper;
import com.eleven.pojo.Funding;
import com.eleven.service.FundingService;
@Service
public class FundingServiceImpl implements FundingService{

	@Autowired
	FundingMapper fundingMapper;

	public FundingMapper getFundingMapper() {
		return fundingMapper;
	}

	public void setFundingMapper(FundingMapper fundingMapper) {
		this.fundingMapper = fundingMapper;
	}

	/**
	 * 根据项目id查找参与表及相关表的信息
	 */
	public List<Funding> getFundingByfdPsId(Integer fdPsId) {
		Funding funding = new Funding();
		funding.setFdPsId(fdPsId);
		return fundingMapper.selectByfdPsId(funding);
	}
	
	
}
